<template>
  <div id="Lawyer">
    <h3>专业人员</h3>
    <vxe-table stripe :data="lawyerData">
      <vxe-table-column title="律师姓名"  field="lawyerName" align="center"></vxe-table-column>
      <vxe-table-column title="工作地点" field="location" align="center"></vxe-table-column>
      <vxe-table-column title="联系电话" field="phone" align="center"></vxe-table-column>
      <vxe-table-column title="职务" field="position" align="center"></vxe-table-column>
      <vxe-table-column title="工作年限" field="workYear" align="center"></vxe-table-column>
    </vxe-table>
  </div>
</template>

<script>
import {listLawyer} from "@/api/Lawyer";

export default {
  name: 'Lawyer',
  data() {
    return {
      lawyerData: []
    }
  },
  mounted() {
    this.getData()
  },
  methods: {
    getData() {
      listLawyer().then(res => {
        this.lawyerData = res.data.list
      })
    }
  }
}
</script>

<style scoped lang="scss">

</style>
